package com.zzzyh.blogbyspring.mapper;

import com.zzzyh.blogbyspring.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from user where user_name = #{userName} and delete_flag = 0")
    UserInfo getUserInfoByUserName(String userName);

    @Select("select * from user where id = #{id} and delete_flag = 0")
    UserInfo getUserInfoById(Integer id);


}
